package cn.bigcontainer.alt.workflow.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import cn.bigcontainer.alt.common.entity.BigMap;
import cn.bigcontainer.alt.common.po.BasePo;
import cn.bigcontainer.alt.common.po.Po;
import cn.bigcontainer.alt.common.util.WoKit;
import cn.bigcontainer.alt.meta.typehandler.BigMapHandler;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 *
 * @author cailei
 * @create_date 2011-3-13
 */
@Data
@TableName(autoResultMap = true)
@Accessors(chain = true)
public class MRuntimeTaskCandidate extends BasePo {

	@TableId(type = IdType.AUTO)
	protected Integer id;

	protected Integer runtimeTaskId;

	protected String candidateId;

	@TableField(typeHandler = BigMapHandler.class)
	protected BigMap<String, Object> data = new BigMap<>();// text

    public MRuntimeTaskCandidate(Po po) {
        WoKit.cloneBySetter(po, this);
    }

    public MRuntimeTaskCandidate() {
    }
}
